package day09.ExceptionTest;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;

public class Test5 {
    public static void main(String[] args) throws ParseException {
        String s1 = "1994-5-31";
        String s2 = "1999-3-13";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date d1 = sdf.parse(s1);
        Date d2 = sdf.parse(s2);


    }
}
